package com.wf.smartcomm.server.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.google.gson.annotations.Expose;

/** 
 * @author 38884306@qq.com  
 * @version ����ʱ�䣺2015-5-18 ����7:37:47 
 * 
 */
@Entity
@Table(name = "t_unlock")
public class UnLock {
	@Expose
	@Id
	@Column(length = 32)
	private String objectId;
	
	@Expose
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name = "uid")
	private User user;
	
	@Expose
	@Column(length = 1)
	private String type;
	
	@ManyToOne
	@JoinColumn(name = "mid")
	private UnitMachine unitMachine;
	
	@Column(length = 20)
	private String voipNumber;
	
	@Expose
	@Column(length = 20)
	private String createdAt;
	
	public String getObjectId() {
		return objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(String createdAt) {
		this.createdAt = createdAt;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public UnitMachine getUnitMachine() {
		return unitMachine;
	}

	public void setUnitMachine(UnitMachine unitMachine) {
		this.unitMachine = unitMachine;
	}

	public String getVoipNumber() {
		return voipNumber;
	}

	public void setVoipNumber(String voipNumber) {
		this.voipNumber = voipNumber;
	}
}
